

package model;


import java.io.Serializable;

 /**
  * UserDTO Value Object.
  * This class is the value object representing database table User
  * This class is intended to be used together with associated Dao object.
  */

public class UserDTO implements Cloneable, Serializable {

	private static final long serialVersionUID = 1L;
	
	private String Username; // Id field in DB
    private String Name;
    private String Type;
    private String Password;
    private String Email;
    private String Manager;
    private int Status;
    private String ManagerName;

    public UserDTO () {

    }

	public String getUsername() {
		return Username;
	}

	public void setUsername(String username) {
		Username = username;
	}
	
    public String getName() {
          return this.Name;
    }
    public void setName(String NameIn) {
          this.Name = NameIn;
    }

    public String getType() {
          return this.Type;
    }
    public void setType(String TypeIn) {
          this.Type = TypeIn;
    }

    public String getPassword() {
          return this.Password;
    }
    public void setPassword(String PasswordIn) {
          this.Password = PasswordIn;
    }

    public String getEmail() {
          return this.Email;
    }
    public void setEmail(String EmailIn) {
          this.Email = EmailIn;
    }

    public String getManager() {
          return this.Manager;
    }
    public void setManager(String ManagerIn) {
          this.Manager = ManagerIn;
    }

    public int getStatus() {
          return this.Status;
    }
    public void setStatus(int StatusIn) {
          this.Status = StatusIn;
    }
    
	public String getManagerName() {
		return ManagerName;
	}

	public void setManagerName(String managerName) {
		ManagerName = managerName;
	}

    @Override
    public String toString() {
        StringBuffer out = new StringBuffer();
        out.append("\nclass UserDTO, mapping to table UserDTO\n");
        out.append("Persistent attributes: \n"); 
        out.append("Id = " + this.Username + "\n"); 
        out.append("Name = " + this.Name + "\n"); 
        out.append("Type = " + this.Type + "\n"); 
        out.append("Password = " + this.Password + "\n"); 
        out.append("Email = " + this.Email + "\n"); 
        out.append("ManagerID = " + this.Manager + "\n"); 
        out.append("Status = " + this.Status + "\n"); 
        out.append("Manager Name = " + this.ManagerName + "\n");
        return out.toString();
    }

    
}